<?php use_helper('Validation','recaptcha') ?>

<h1>New User Registration</h1>

<?php echo form_tag('@register') ?>
  <label>Login Name</label>
  <?php echo form_error('loginname') ?>
  <?php echo input_tag('loginname',$sf_params->get('loginname')) ?>
  <label>Password</label>
  <?php echo form_error('password') ?>
  <?php echo input_password_tag('password') ?>
  <label>Re-enter Password</label>
  <?php echo form_error('password_bis') ?>
  <?php echo input_password_tag('password_bis') ?>
  <label>First Name</label>
  <?php echo form_error('firstname') ?>
  <?php echo input_tag('firstname',$sf_params->get('firstname')) ?>
  <label>Last Name</label>
  <?php echo form_error('lastname') ?>
  <?php echo input_tag('lastname',$sf_params->get('lastname')) ?>
  <label>Email</label>
  <?php echo form_error('email') ?>
  <?php echo input_tag('email',$sf_params->get('email')) ?>
  <label>Re-enter Email</label>
  <?php echo form_error('email_bis') ?>
  <?php echo input_tag('email_bis',$sf_params->get('email_bis')) ?>
  <br /><br />
  <?php echo form_error('recaptcha_response_field') ?>
  <?php echo recaptcha_get_html(sfConfig::get('app_recaptcha_publickey'), 
    $sf_request->getError('recaptcha_response_field')); ?>
  <br />
  <?php echo submit_tag('Submit') ?>
</form>